package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.StrategyContent;
import cn.wolfcode.luowowo.article.domain.StrategyDetail;
import cn.wolfcode.luowowo.article.query.StrategyDetailQuery;
import cn.wolfcode.luowowo.article.vo.StrategyPersistenceVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StrategyDetailMapper {
    int deleteByPrimaryKey(Long id);

    int insert(StrategyDetail record);

    StrategyDetail selectByPrimaryKey(Long id);

    List<StrategyDetail> selectAll();

    int updateByPrimaryKey(StrategyDetail record);

    List<StrategyDetail> selectForList(StrategyDetailQuery qo);


    void saveStrategyTagRelation(@Param("tagId") Long tagId, @Param("detailId") Long detailId);

    void deleteStrategyTagRelation(Long strategyDetailId);

    List<StrategyDetail> selectViewNumTop3(Long id);

    StrategyContent selectContent(Long id);

    void updateStatisVO(StrategyPersistenceVO pvo);
}